home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -serious- / hardware / ahd12 / config / config.c next >
C/C++ Source or Header  |  2000-02-28  |  537b  |  23 lines

  1. typedef unsigned long ULONG;
  2. typedef unsigned short USHORT;
  3.  
  4. int readhardsec(char *, ULONG, ULONG);
  5.  
  6. USHORT buf[256];
  7.  
  8. void
  9. main()
  10.    {
  11.    if(readhardsec((char *)buf, 0L, 512L) == 0)
  12.       {
  13.       printf("Cylinders:        %d\n",buf[0]);
  14.       printf("Precomp:          %d\n",buf[1]);
  15.       printf("Sectors:          %d\n",buf[2]);
  16.       printf("Heads:            %d\n",buf[3]);
  17.       printf("Interleave:       %d\n", buf[4]);
  18.       printf("Steprate:         %d\n", buf[5]);
  19.       printf("ECC Burst length: %d\n", buf[6]);
  20.       }
  21.    }
  22.  
  23.